{include file="/common/_meta"}
</head>
<body>
{include file="/common/top"}

<div class="main-container container-fluid">
    <div class="page-container">
        <!-- Page Sidebar -->
       {include file="/common/list"}
        <!-- Page Content -->
        <div class="page-content">

            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                   <li>
                        <a href="#">系统</a>
                    </li>
                    <li>
                        <a href="{:url('memberLevel/lst')}">会员级别管理</a>
                    </li>
                </ul>
            </div>
            <!-- /Page Breadcrumb -->

            <!-- Page Body -->
            <div class="page-body">
                <button type="button" tooltip="添加会员级别" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('memberLevel/add')}'"> <i class="fa fa-plus"></i> Add
                </button>
                <div class="row">
                    <div class="col-lg-12 col-sm-12 col-xs-12">
                        <div class="widget">
                            <div class="widget-body">
                                <div class="flip-scroll">
                                    <table class="table table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th class="text-center" width="8%">ID</th>
                                                <th class="text-center">会员级别名称</th>
                                                <th class="text-center">会员积分下限</th>
                                                <th class="text-center">会员积分上限</th>
                                                <th class="text-center">级别折扣率</th>
                                                <th class="text-center" width="20%">操作</th>
                                            </tr>
                                        </thead>
                                        {volist name="mblevellist" id="mblevel"}
                                        <tbody>
                                            <tr>
                                                <td align="center">{$mblevel.level_id}</td>
                                                <td align="center">{$mblevel.level_name}</td>
                                                <td align="center">{$mblevel.level_bompoint}</td>
                                                <td align="center">{$mblevel.level_toppoint}</td>
                                                <td align="center">{$mblevel.level_rate}</td>
                                                <td align="center">
                                                    <a href="{:url('edit',array('level_id'=>$mblevel['level_id']))}" class="btn btn-primary btn-sm shiny">
                                                        <i class="fa fa-edit"></i> 编辑
                                                    </a>
                                                    <a href="#" onClick="warning('确实要删除吗', '{:url('del',array('level_id'=>$mblevel['level_id']))}')" class="btn btn-danger btn-sm shiny">
                                                        <i class="fa fa-trash-o"></i> 删除
                                                    </a>
                                                </td>
                                            </tr>
                                        </tbody>
                                        {/volist}
                                    </table>
                                </div>
                                <div>{$mblevellist->render()}</div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
	</div>	
</div>

{include file="common/_footer"}
</body>
</html>